home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / cmnctrls / ctrldemo.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  1.2 KB  |  47 lines

  1. // ctrldemo.cpp : Defines the class behaviors for the application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "ctrldemo.h"
  6.  
  7. #include "propsht.h"
  8.  
  9. #ifdef _DEBUG
  10. #define new DEBUG_NEW
  11. #undef THIS_FILE
  12. static char THIS_FILE[] = __FILE__;
  13. #endif
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CCtrldemoApp
  17.  
  18. BEGIN_MESSAGE_MAP(CCtrldemoApp, CWinApp)
  19.     //{{AFX_MSG_MAP(CCtrldemoApp)
  20.     //}}AFX_MSG_MAP
  21.     // Standard file based document commands
  22.     ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew)
  23.     ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)
  24. END_MESSAGE_MAP()
  25.  
  26. /////////////////////////////////////////////////////////////////////////////
  27. // The one and only CCtrldemoApp object
  28.  
  29. CCtrldemoApp theApp;
  30.  
  31. /////////////////////////////////////////////////////////////////////////////
  32. // CCtrldemoApp initialization
  33.  
  34. BOOL CCtrldemoApp::InitInstance()
  35. {
  36.     CString str;
  37.     str.LoadString(IDS_COMCTRLSAM);
  38.     CAllControlsSheet    allcontrolssheet((LPCTSTR)str);
  39.     m_pMainWnd = &allcontrolssheet;
  40.     allcontrolssheet.DoModal();
  41.     return FALSE;
  42. }
  43.  
  44. /////////////////////////////////////////////////////////////////////////////
  45. // CCtrldemoApp commands
  46.  
  47.